// vue.config.js

module.exports = {
    lintOnSave: false, //关闭语法检查 默认值为true
    devServer: { //配置内置的dev-Server打开8080服务器
        open: true, //运行npm run serve ,命令自动打开浏览器 
        proxy: {
            '/api1': {
              target: 'http://localhost:5000',
              pathRewrite:{"^/api1" :""},
              ws: true,
              changeOrigin: true
            },
            '/api2': {
              target: 'http://localhost:5001',
              pathRewrite:{"^/api2" :""},
              ws: true,
              changeOrigin: true
            }
          }
    }
}